Motion.StopAxis 方法
命令一个控制运动停止,并将轴设定为停止 (Stopping) 状态。此方法将中断所有执行中的函式,当轴处于停止 (Stopping) 状态,其他函式将无法移动轴,当轴到达速度零后,KsCommandStatus 的 Done
栏位将立即设为 true。欲离开停止 (Stopping) 状态并转为静止 (Standstill) 状态,请使用 Motion.ReleaseAxis。
命名空间:IntervalZero.KINGSTAR.Local.Api
组合: IntervalZero.KINGSTAR.Local.Api (于 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0
语法
public KsCommandStatus StopAxis(
int Index,
double Deceleration,
double Jerk
)
Public Function StopAxis(
Index As Integer,
Deceleration As Double,
Jerk As Double
) As KsCommandStatus
参数
Index [in]
型别:int
轴索引。索引以 0 为起始;别名将影响此参数。
Deceleration [in]
型别:double
减速度值,单位取决于 McProfileType。[单位/秒2] 或 [秒]
Jerk [in]
型别:double
加加速度值,单位取决于 McProfileType。[单位/秒3] 或 [秒]
回传值
回传 KsCommandStatus 类别。
范例
N/A
参见